<template>
  <div class="home">
    <el-container>
      <el-header>
        <!-- 头部 -->
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!-- 菜单 -->
          <Menu></Menu>
        </el-aside>
        <el-container>
          <el-main>
            <!-- 二级路由坑 -->
            <Bread></Bread>
            
              <router-view></router-view>
            
            
          </el-main>
          <el-footer>
            <!-- 底部 -->
            <Foot></Foot>
          </el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Foot from "./common/Footer.vue";
import Header from "./common/Header.vue";
import Menu from "@/components/common/Menu.vue";
//面包屑移入
import Bread from "@/components/common/Bread.vue";
export default {
  name: "home",
  components: {
    Header,
    Foot,
    Menu,
    Bread
  },
  props: {},
  created() {
    // console.log(this.$route);
    // console.log(this);
  },
  watch: {
  },
};
</script>


<style scoped lang='less'>
.home{
  width: 100%;
  height: 100%;
}
.el-container {
  height: 100%;
  .el-main{
    height: 100%;
    .el-card{
       height: 100%;
    }
  }
}

.el-header,
.el-footer {
  background-color: white;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
</style>
